package types

import (
	"com/study/util"
	"fmt"
)

func Map() {
	// map 是无序的
	aMap := make(map[string]string)
	aMap["no1"] = "no1"
	aMap["no2"] = "no1"
	aMap["no3"] = "no1"
	delete(aMap, "no1")
	util.PrnType(aMap)
	util.PrnType(map[string]string{
		"no2": "no2Val",
		"no3": "no2Val",
	})

	for s := range aMap {
		fmt.Println(s)
	}
}
